package and.activity;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class TabsActivity extends TabActivity {
	@Override
	protected void onResume() {
		super.onResume();
	}
	
	@Override
	protected void onPause() {
		super.onPause();
	}
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		final TabHost tabHost = getTabHost();
		tabHost.addTab(tabHost.newTabSpec("search").setIndicator("查询",getResources().getDrawable(R.drawable.search))
				.setContent(new Intent(this, MainActivity.class)));
		
		tabHost.addTab(tabHost.newTabSpec("statistics").setIndicator("统计",getResources().getDrawable(R.drawable.statistics))
				.setContent(new Intent(this,StatisticsActivityGroup.class)));
		
		tabHost.addTab(tabHost.newTabSpec("select").setIndicator("选号",getResources().getDrawable(R.drawable.choose))
				.setContent(new Intent(this,ChooseActivityGroup.class)));
		tabHost.addTab(tabHost.newTabSpec("buy").setIndicator("购彩",getResources().getDrawable(R.drawable.buy))
				.setContent(new Intent(this,BuyActivity.class)));
	}
	
	
}
